/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.aratuk.modelo;

import java.math.BigDecimal;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

/**
 *
 * @author roniere
 */
@Entity
public class Premio  extends Entidade {

    @Id
    @SequenceGenerator(sequenceName = "seq_premio", name = "seq_premio", allocationSize = 1)
    @GeneratedValue(generator = "seq_premio", strategy = GenerationType.SEQUENCE)
    private Long id;
    
    private String nome;
    
    private int qtdNumeros;
    
    private int qtdBolaExtra;
    
    private BigDecimal valor;
    
    private boolean jackpot;
    
    private boolean contemBolaExtra;

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    
    public boolean isContemBolaExtra() {
        return contemBolaExtra;
    }

    public void setContemBolaExtra(boolean contemBolaExtra) {
        this.contemBolaExtra = contemBolaExtra;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public boolean isJackpot() {
        return jackpot;
    }

    public void setJackpot(boolean jackpot) {
        this.jackpot = jackpot;
    }

    public int getQtdBolaExtra() {
        return qtdBolaExtra;
    }

    public void setQtdBolaExtra(int qtdBolaExtra) {
        this.qtdBolaExtra = qtdBolaExtra;
    }

    public int getQtdNumeros() {
        return qtdNumeros;
    }

    public void setQtdNumeros(int qtdNumeros) {
        this.qtdNumeros = qtdNumeros;
    }

    public BigDecimal getValor() {
        return valor;
    }

    public void setValor(BigDecimal valor) {
        this.valor = valor;
    }

    @Override
    public String toString() {
        return "Premio{" + "id=" + id + ", nome=" + nome + ", qtdNumeros=" + qtdNumeros + ", qtdBolaExtra=" + qtdBolaExtra + ", valor=" + valor + ", jackpot=" + jackpot + ", contemBolaExtra=" + contemBolaExtra + '}';
    }
    
    
    
}
